@model IEnumerable<SIOGDE.AccesoDatos.Entidades.Persona>
@{ ViewBag.Title = "Persona";}
<link href="~/Content/DataForm.css" rel="stylesheet"/>
<div class="box Common">
 <div class="header">
     Gestionar Persona
     <input type="button" class="btnCancel" value ="Cancelar y Regresar" onclick="history.go(-1);"/>
     @Html.ActionLink("Agregar Nuevo", "DataForm", null, new { @class= "button medium green", @style="float:right;"})
 </div>
 <table id="basictab" style="width:100%">
 <tr>
      <th>@Html.DisplayNameFor(model => model.Persona)</th>
      <th>@Html.DisplayNameFor(model => model.Codigo)</th>
      <th>@Html.DisplayNameFor(model => model.CI)</th>
      <th>@Html.DisplayNameFor(model => model.CIMilitar)</th>
      <th>@Html.DisplayNameFor(model => model.Nombre1)</th>
      <th>@Html.DisplayNameFor(model => model.Nombre2)</th>
      <th>@Html.DisplayNameFor(model => model.ApellidoPaterno)</th>
      <th>@Html.DisplayNameFor(model => model.ApellidoMaterno)</th>
      <th>@Html.DisplayNameFor(model => model.Genero)</th>
      <th>@Html.DisplayNameFor(model => model.FechaNacimiento)</th>
      <th>@Html.DisplayNameFor(model => model.LugarNacimiento)</th>
      <th>@Html.DisplayNameFor(model => model.Estatura)</th>
      <th>@Html.DisplayNameFor(model => model.Peso)</th>
      <th>@Html.DisplayNameFor(model => model.Etnia)</th>
      <th>@Html.DisplayNameFor(model => model.Raza)</th>
      <th>@Html.DisplayNameFor(model => model.Email)</th>
      <th>@Html.DisplayNameFor(model => model.FechaEgreso)</th>
      <th>@Html.DisplayNameFor(model => model.NumAntiguedadEgreso)</th>
      <th>@Html.DisplayNameFor(model => model.EsPersonaCivil)</th>
        <th></th></tr>
     @foreach (var item in Model)
     {<tr>
         <td>@Html.DisplayFor(modelItem => item.Persona.Nombre)</td>
         <td>@Html.DisplayFor(model => item.Codigo)</td>
         <td>@Html.DisplayFor(model => item.CI)</td>
         <td>@Html.DisplayFor(model => item.CIMilitar)</td>
         <td>@Html.DisplayFor(model => item.Nombre1)</td>
         <td>@Html.DisplayFor(model => item.Nombre2)</td>
         <td>@Html.DisplayFor(model => item.ApellidoPaterno)</td>
         <td>@Html.DisplayFor(model => item.ApellidoMaterno)</td>
         <td>@Html.DisplayFor(model => item.Genero)</td>
         <td>@Html.DisplayFor(model => item.FechaNacimiento)</td>
         <td>@Html.DisplayFor(model => item.LugarNacimiento)</td>
         <td>@Html.DisplayFor(model => item.Estatura)</td>
         <td>@Html.DisplayFor(model => item.Peso)</td>
         <td>@Html.DisplayFor(model => item.Etnia)</td>
         <td>@Html.DisplayFor(model => item.Raza)</td>
         <td>@Html.DisplayFor(model => item.Email)</td>
         <td>@Html.DisplayFor(model => item.FechaEgreso)</td>
         <td>@Html.DisplayFor(model => item.NumAntiguedadEgreso)</td>
         <td>@Html.DisplayFor(model => item.EsPersonaCivil)</td>
         <td>@Html.ActionLink("Editar", "DataForm", new { ide= Didsoft.Mvc.Security.WebUtils.Encrypt(item.Id.ToString())} , new { @class= "button medium yellow"})@Html.ActionLink("Eliminar", "Delete", new { ide= Didsoft.Mvc.Security.WebUtils.Encrypt(item.Id.ToString())} , new { @class= "button medium red"})</td>
     </tr>}
 </table><footer><input type="button" class="btnCancel" value ="Cancelar y Regresar" onclick="history.go(-1);"/></footer></div>

